package ch6;

/**
 * @author oldliu
 * @since 1.0
 */
public class Xyz {
    public static void main(String[] args) {
        int x = 0;
        int y = 0;
        int z = 0;
        while (x <=95) {
            y=z=0;
            while (y<=95){
                z=0;
                while (z<=95){
                    if ((x * y + z == 94) && (x + y * z == 95)) {
                       System.out.println("x=" + x + "\t" + "y=" + y + "\t" + "z=" + z);
                    }
                    z++;
                }
                y++;
            }
            x++;
        }

//        for (int x = 0; x <= 95; x++) {
//            for (int y = 0; y <= 95; y++) {
//                for (int z = 0; z <= 95; z++) {
//                    if ((x * y + z == 94) && (x + y * z == 95)) {
//                        System.out.println("x=" + x + "\t" + "y=" + y + "\t" + "z=" + z);
//                    }
//                }
//            }
//        }
    }
}
